void initWifi(){
    WiFi.mode(WIFI_STA);
    WiFi.begin(ssid,password);
    unsigned long startTime = millis();
    while(WiFi.status()!=WL_CONNECTED  && millis() - startTime < 10000){
        delay(1000);
        Serial.print(".");
        tft.print(".");
    }
    tft.println("");
    tft.println("");
    if(WiFi.status()!=WL_CONNECTED){
        Serial.print("Connection Failed!");
        tft.print("Connection Failed!");
    }
else
{
    tft.print("IP >> ");
    tft.println(WiFi.localIP());
}
}